#!/bin/bash
rm -rf /home/maon运维误删/getattfile/outfile/*
rm -rf /home/maon运维误删/getattfile/outfile.tar.gz
 for line in `cat /home/maon运维误删/getattfile/hh.txt`
do
    OLD_IFS="$IFS"
    IFS="@"
    array=($line)
    IFS="$OLD_IFS"
    for var in ${array[@]}
 do
   mkdir /home/maon运维误删/getattfile/outfile/${array[0]}
   OLD_IFS="$IFS"
    IFS=""
    arrays=($var)
    IFS="$OLD_IFS"
   cp ${arrays[0]}  /home/maon运维误删/getattfile/outfile/${array[0]}
 done
   tar -zcvf  ../outfile.tar.gz  ../outfile
done


import os
sum=0
for line in open("D:\python\su.txt"):
	print(line)
	x=line.split("@")
	s=os.getcwd()
	if not os.path.exists(x[0]):
		os.mkdir(x[0])
		print(os.getcwd())
		os.chdir(x[0])
		if not os.path.exists(x[1]):
			os.mkdir(x[1])
	else:
		os.chdir(x[0])
		print(os.getcwd())
		if not os.path.exists(x[1]):
			os.mkdir(x[1])
			print(os.getcwd())
	sum+=1
	os.chdir(s)
	print(os.getcwd())
	print(sum)